<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<%@include file="tt.txt" %>
<body>
	<%-- <jsp:include page="tt.txt"></jsp:include>
	<%
	/*jsp中的java代码写在jsp的《%%》标签中
	jsp运行的是java代码而不是jsp代码
	
	jsp的include指令和标签的区别。
	*/
	for(int i=0;i<5;i++){
		//动态页面输出内容
		out.write("Hello World !"+i+"<br>");	
	}
	
	%> --%>

	<%
		//设置request对象的编码格式和客户端页面保持一致（解决中文乱码）
		request.setCharacterEncoding("utf-8");
		//前表单空间的name属性的值
		out.print("用户名" + request.getParameter("txtName"));
		out.write(request.getParameter("txtPsw").toString());
		//获取多元素控件
		String[] strVals = request.getParameterValues("chHobby");
		for(String str : strVals){
			out.write(str+"<br/>");
		}
		%>



</body>
</html>